import time
scale = 100
print("执行开始".center(scale//2,'-'))
start = time.perf_counter()

for i in range(scale+1):
	num = int(pow((i + (1-i)*0.03),2))
	a = num*'='
	b = (scale-num)*'-'
	c = (num/scale)*100
	dur = time.perf_counter() - start
	print("\r{:^3.0f}%[{}>{}]{:.2f}s".format(c,a,b,dur),end="")
	time.sleep(1)
print("\n"+"执行结束".center(scale//2,'-'))	